package com.zr.dao.dispatch;

import com.zr.vo.dispatch.DispatchRoute;

import java.util.List;

public interface DispatchRouteDao {
    int deleteByPrimaryKey(Integer id);

    int insert(DispatchRoute record);

    int insertSelective(DispatchRoute record);

    DispatchRoute selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(DispatchRoute record);

    int updateByPrimaryKey(DispatchRoute record);

    /**
     * 通过调度号查询路线
     * @param ticketId
     * @return
     * @author 杜雨萌
     */
    DispatchRoute selectByTicketId(String ticketId);

    List<DispatchRoute> selectAllByDisPId(String ticketId);

    int insertDispatchRouteList(List<DispatchRoute> dispatchRouteList);

    int deleteByTicketId(String ticketId);

    int updateArTimeByTidandAid(DispatchRoute dispatchRoute);
}